﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GeneralDefine
{
    public class HardWareBase
    {
        protected object lockObj = new object();
        public string hardwareName;
        public bool bInitOK;
        public HardWareBase()
        {

        }
        public HardWareBase(string strHardName)
        {
            hardwareName = strHardName;
        }
        virtual public bool LoadSetting()
        {
            return true;
        }
        virtual public bool Init(string strName)
        {
            return true;
        }
        virtual public bool Close()
        {
            return true;
        }
        virtual public bool Save()
        {
            return true;
        }
        virtual public string GetInfo()
        {
            return "";
        }
        virtual public dynamic FunctionCaller
        {
            get
            {
                return this;
            }
        }
        virtual public Form ShowSettingForm()
        {
            return null;
        }

    }
}
